#include "wllocker.h"

WlLocker::WlLocker()
{

}

// 01为状态开
const QString WlLocker::OPEN = "01";
// 00为状态关
const QString WlLocker::CLOSE = "00";

// 开启
const QString WlLocker::STATUS_OPEN = "开启";
// 关闭
const QString WlLocker::STATUS_CLOSE = "关闭";
// 未知
const QString WlLocker::STATUS_UNKNOWN = "未知";
// 接收错误
const QString WlLocker::STATUS_ERROR = "接收错误";

// 打开单个门
const QString WlLocker::open_one_send = "98 %1 %2 01 00 00 00 00 ";
const QString WlLocker::open_one_recv = "98 %1 %2 06 00 00 00 00 ";

// 全部打开
const QString WlLocker::open_all_send = "98 %1 FF 01 00 00 00 00 ";
const QString WlLocker::open_all_recv = "98 %1 FF 06 00";

// 查询单个门状态
const QString WlLocker::status_one_send = "98 %1 %2 04 00 00 01 00 "; // %3参数：01--代表门处于打开状态 00--代表门处于关闭状态
const QString WlLocker::status_one_recv = "98 %1 %2 06 00 00 %3 00 ";

// 查询所有门状态
const QString WlLocker::status_all_send = "98 %1 FF 04 00 00 00 00 ";
const QString WlLocker::status_all_recv = "98 %1 FF 06 00 ";
